home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Re Thick, Dashed line bug in O < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Thick, Dashed line bug in ODF?
  2. Sent:        9/10/96 12:04 PM
  3. Received:    9/10/96 12:04 PM
  4. From:        Brad Pettit <bpettit@apple.com>
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. The dashed line implementation is based on the behavior of Windows. The 
  10. only dashed line supported by the framework is pensize 1 (actually, a 
  11. pensize 0 hairline works, too). Windows behaves this way, and we 
  12. implemented the same dashed line for Mac. Due to various concerns (such 
  13. as performance) with line caps, and rectangular pens, this hasn't been 
  14. implemented for other sizes.
  15.  
  16. --Brad
  17.  
  18. >I have noticed that FW_CLineShape::RenderLine() does not render a thick
  19. >dashed lined in ODF DR1. It renders only a thick line. If the pen's size is
  20. >changed to 1 pixel, it will then render a dashed line correctly. If the
  21. >pen's size is  > 1 without a dashed line, it draws the thick line
  22. >correctly. But it won't draw both together.
  23. >
  24. >I call FW_CLineShape::RenderLine(gc, start, end, ink, style), where the
  25. >style's pen size has been set using style.SetPenSize( newPenSize ), and the
  26. >style's dash has been set using style.SetDashStyle( newPenDash )
  27. >
  28. >Indeed a bug?
  29. >
  30. >Arni